home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / manual-p / man_db-l.2 < prev    next >
Text File  |  1996-11-17  |  4KB  |  128 lines

  1. Forwarded message:
  2. Date: Sat, 23 Dec 1995 12:57:59 -0500 (EST)
  3. From: "H.J. Lu" <hjl@nynexst.com>
  4. Subject: libc-5.3.0 caught a bug in man.
  5. To: Kevin Donovan <kdonovan@panix.com>
  6. Cc: David Engel <david@ods.com>, G.Wilford@ee.surrey.ac.uk,
  7.         Linux Developer -- Craig Groeschel <craig@metrolink.com>,
  8.         David Bonn <bonn@eskimo.com>, "Eric C. Newton" <ecn@clark.net>,
  9.         Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>,
  10.         Huw Rogers <Huw.Rogers@ska.com>, Laser Moon <ian@lasermoon.co.uk>,
  11.         "John W. Christy" <jchristy@bga.com>, Warner Losh <imp@village.org>,
  12.         Mat Hostetter <mat@ardi.com>, Brian Bourgault <brian@mathworks.com>,
  13.         Michael Meissner <meissner@cygnus.com>,
  14.         Kenneth Osterberg <lmfken@lmf.ericsson.se>,
  15.         Kenneth Albanowski <kjahds@kjahds.com>,
  16.         Andy Dougherty <doughera@lafcol.lafayette.edu>,
  17.         The Linux C library list <linux-gcc@vger.rutgers.edu>
  18. In-Reply-To: <199512231514.KAA15439@panix4.panix.com>
  19. Message-Id: <Pine.3.07.9512231255.A627-c100000@jalod>
  20. Mime-Version: 1.0
  21. Content-Type: TEXT/PLAIN; charset=US-ASCII
  22.  
  23.  
  24. On Sat, 23 Dec 1995, Kevin Donovan wrote:
  25.  
  26. > I installed libc-5.3.0 last evening from libc-5.3.0.bin.tar.gz and I
  27. > can't use the man command to read manual pages.  libc-5.2.19 gave the
  28. > same problem.  Man works fine with libc-5.2.18, and I have now gone
  29. > back to 5.2.18.
  30. > I am using version 2.7.2 of gcc (the "old" gcc), which I compiled
  31. > myself.  Kernel version is 1.3.47.  The man pager I use keeps
  32. > references to the pages in dbm files.  I can execute /usr/bin/man, but
  33. > it crashes if I try to read any documents.  If I type "man --version",
  34. > it responds:
  35. > man, version 2.3.5, db 2.3.1, April 21st, 1995 (G.Wilford@ee.surrey.ac.uk)
  36. > If you to need to know more, please let me know.
  37. > Kevin
  38.  
  39. The new malloc from Doug Lea caught a bug in
  40.  
  41. man, version 2.3.10, db 2.3.1, July 12th, 1995 (G.Wilford@ee.surrey.ac.uk)
  42.  
  43. The setlocale man page under Linux doesn't say the string returned by
  44. setlocale () will be overwritten by a subsequent call to setlocale(),
  45. which is mentioned in the SunOS version.
  46.  
  47. BTW, libc 5.3.0 looks pretty good. If you find your program doesn't
  48. work anymore with 5.3.0, please debug your program first. man
  49. is the second bogus libc 5.3.0 report I got.
  50.  
  51.  
  52. H.J.
  53. -----
  54. diff -rc man-2.3.10/src/catman.c man-2.3.10.fixed/src/catman.c
  55. *** man-2.3.10/src/catman.c    Wed Sep 20 14:31:58 1995
  56. --- man-2.3.10.fixed/src/catman.c    Sat Dec 23 12:54:52 1995
  57. ***************
  58. *** 387,392 ****
  59. --- 387,396 ----
  60.   
  61.   #ifdef HAVE_SETLOCALE    
  62.       locale = NLS_INIT;
  63. +     if (locale)
  64. +     {
  65. +         locale = xstrdup (locale);
  66. +     }
  67.   #endif /* HAVE_SETLOCALE */
  68.   
  69.       while ((c = getopt_long (argc, argv, args,
  70. Only in man-2.3.10.fixed/src: lexgrog.c
  71. diff -rc man-2.3.10/src/man.c man-2.3.10.fixed/src/man.c
  72. *** man-2.3.10/src/man.c    Wed Sep 20 14:31:58 1995
  73. --- man-2.3.10.fixed/src/man.c    Sat Dec 23 12:50:06 1995
  74. ***************
  75. *** 675,680 ****
  76. --- 675,684 ----
  77.       /* initialise the locale */
  78.   #ifdef HAVE_SETLOCALE
  79.       internal_locale = NLS_INIT;
  80. +     if (internal_locale)
  81. +     {
  82. +         internal_locale = xstrdup (internal_locale);
  83. +     }
  84.   #endif /* HAVE_SETLOCALE */
  85.   
  86.   /* export argv, it might be needed when invoking the vendor supplied browser */
  87. ***************
  88. *** 730,735 ****
  89. --- 734,743 ----
  90.          issued as an argument or in $MANOPT */
  91.       if (locale) {
  92.           internal_locale = setlocale(LC_MESSAGES, locale);
  93. +         if (internal_locale)
  94. +         {
  95. +             internal_locale = xstrdup (internal_locale);
  96. +         }
  97.   #  ifdef NLS
  98.           NLS_CLOSE;
  99.           catfd = catopen("man_db", MCLoadBySet);
  100. diff -rc man-2.3.10/src/whatis.c man-2.3.10.fixed/src/whatis.c
  101. *** man-2.3.10/src/whatis.c    Wed Sep 20 14:31:59 1995
  102. --- man-2.3.10.fixed/src/whatis.c    Sat Dec 23 12:54:39 1995
  103. ***************
  104. *** 497,502 ****
  105. --- 497,506 ----
  106.   
  107.   #ifdef HAVE_SETLOCALE
  108.       locale = NLS_INIT;
  109. +     if (locale)
  110. +     {
  111. +         locale = xstrdup (locale);
  112. +     }
  113.   #endif /* HAVE_SETLOCALE */
  114.                       
  115.       while ((c = getopt_long (argc, argv, args,
  116.  
  117.  
  118. Wilf.
  119. -- 
  120.     Dept. of Electronic Eng.    Phone: Mon-Wed: 01483-259826
  121.     University of Surrey        Phone: Thu-Fri: 01483-300800 x2259
  122.     Guildford            Fax: 01483-34139    
  123.     Surrey GU2 5XH.            email: g.wilford@ee.surrey.ac.uk
  124.